package com.google.code.timetrail.gui;

import com.google.code.timetrail.backend.ConsumptionRate;
import com.google.code.timetrail.backend.Control;
import com.google.code.timetrail.backend.TravelSpeed;

public class TakingMoveFrameBackend {
	private Control gameControl;
    private ConsumptionRate rations;
    private TravelSpeed pace;
    private int distanceTraveled;
    private int foodLeft;
    
    public TakingMoveFrameBackend(Control gameControl)	{
    	this.gameControl = gameControl;
    	distanceTraveled = 0;
    	foodLeft = 0;
    }
    
    public String getPaceRationsButtonText() {
    	return "Change Pace/Ration";
    }
    
    public String getContinueButtonText() {
		return "Continue";
    }
    
    public String getFoodLabelText() {
    	return "Food: " +gameControl.getInv().getFood().getCurrentAmount();
    }
    
    public String getRationsLabelText() {
    	return "Rations are set to " + gameControl.getRations();
    }
    
    public String getDistanceLabelText() {
    	return "Distance: " + gameControl.getTime().getTimeTraveled();
    }
    
    public String getPaceLabelText() {
    	return "Pace is set to " + gameControl.getPace();
    }
    
    public String getTurnLabelText() {
    	return "Turn: " + gameControl.getTime().getTurn();
    }

	public void pressContinue() {
		// TODO Auto-generated method stub
		gameControl.takeATurn();
	}
}
